<?php

namespace app\index\validate;

use think\Validate;

class Edit extends Validate
{
    protected $rule = [
        'title' => 'require|max:25',
        'cid' => 'require',
        'author' => 'require',
        'keywords' => 'require',
        'thumb' => 'require',
        'description' => 'require',
        'content' => 'require',

    ];
    protected $message  =   [
        'title.require' => '标题不能为空',
        'author.require'     => '作者不能为空',
    ];
}
